import static org.junit.Assert.*;

import org.junit.Test;




public class TestSeq {

//	@Before
//	public void setUp() throws Exception {
//	}

	@Test
	public void testPushWithSamePlayer(){
		Seq seq = new Seq(1, 2);
		seq.flush();
		seq.push(0);
		seq.push(1);
		seq.push(1);
		seq.push(1);
		seq.push(0);
		seq.push(0);
		seq.push(0);
		seq.push(1);
		seq.push(1);
		assertTrue(seq.value() == 28);
	}
	
	@Test
	public void testPushWithBoth(){
		Seq seq = new Seq(1, 2);
		seq.flush();
		seq.push(1);
		seq.push(1);
		seq.push(1);
		seq.push(0);
		seq.push(2);
		seq.push(2);
		seq.push(2);
		seq.push(0);
		seq.push(1);
		seq.push(1);
		seq.push(1);
		seq.push(1);
		System.out.println(seq.value());
		assertTrue(seq.value() == -2);
	}
}
